package com.shunwang.tools.httpclientsupport.support;

import java.io.IOException;

import org.apache.commons.httpclient.HttpException;

import com.shunwang.tools.httpclientsupport.client.AbstractHttpClientNode;
import com.shunwang.tools.httpclientsupport.pool.Pool;

public class HttpClientExecutor extends AbstractClientExector{

	public HttpClientExecutor(Pool pool) {
		super(pool);
	}

	protected Object doExecute(ClientCallBack method,Object client) throws HttpException, IOException,Exception{
		return ((HttpClientCallBack)method).doHttpClient((AbstractHttpClientNode)client);
	}
}
